<?php
/* 
 *MailTest
 * funcionalidad MailSender
 *
 */
require_once dirname(__FILE__).'/../bootstrap/unit.php';
$configuracion = ProjectConfiguration::getApplicationConfiguration('frontend', 'test', 'true');
new sfDatabaseManager($configuration);
Doctrine_Core::loadData(sfConfig::get('sf_test_dir').'/fixtures');

$cantidad_pruebas = 1;
$test = new lime_test($cantidad_pruebas);

        $message = Swift_Message::newInstance()
//          ->setFrom(sfConfig::get('app_sf_guard_plugin_default_from_email', 'from@noreply.com'))
        ->setFrom('proyecto.ecampus@gmail.com')
//          ->setTo($this->form->user->email_address)
        ->setTo('mariano_anaya@gmail.com')
          ->setSubject('Mail Test')
          ->setBody('Mensaje ')
          ->setContentType('text/html')
        ;

        $this->getMailer()->send($message);
        Swift_Mailer::getMailer()->send($message);

$test->ok(true);
?>
